#ifndef GEOMETRY_CALCS_H
#define GEOMETRY_CALCS_H
#include <common/types.h>

double deg2rad(double angle);
double get_ta(const Point3D &p0, const Point3D &p1, double radio);
Point3D *find_a_point(const Point3D &p0, const Point3D &vector, double lambda);
Point *lineal_interpolation(const Point &p0, const Point &p1, double x);
Point3D* get_translation_point(Axis to, double wingspan, double dihedral_angle, double arrow_angle);
Point* circunsference_point(Point origin, double radio, double angle);
Point3D* get_point(double radio, double polar_angle, double azimut_angle);
void create_semicircle(int nknots, Point fst, double radio, QVector<Point *> &output);
Point3D *get_point_using_lineal_interpolation(QVector<Point *> &points, double value);
int calculate_nknots(const Point3D &icp1, const Point3D &icp2, const Point3D &fcp);

#endif // GEOMETRY_CALCS_H
